import type { RouteRecordRaw } from 'vue-router';
import RouterView from '@/layout/routerView/index.vue';

const moduleName = 'site';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/site',
    redirect: { name: `/${moduleName}-siteManagement` },
    component: RouterView,
    meta: {
      title: '场所管理',
      icon: 'icon-zhuomian',
      hideInMenu: true,
    },
    children: [
      {
        path: 'siteInfo',
        name: `${moduleName}-siteManagement-siteInfo`,
        meta: {
          title: '场所详情',
          hideInMenu: true,
          activeMenu: `${moduleName}-siteManagement`,
        },
        component: () => import('@/views/site/siteManagement/siteInfo.vue'),
      },
    ],
  },
];

export default routes;
